package com.asohofrucol.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.asohofrucol.model.FormField;
import com.asohofrucol.model.FormFieldData;

public interface FormFieldDataDao extends JpaRepository<FormFieldData, Long> {

	@Query("SELECT p FROM FormFieldData p WHERE p.formField.id = :formFieldId")
	public List<FormFieldData> listByFormField(
			@Param("formFieldId") Long formFieldId);
}
